package com.yami.shop.security.api.service;

import com.yami.shop.common.exception.YamiShopBindException;
import com.yami.shop.security.comment.enums.App;
import com.yami.shop.security.comment.token.AuthenticationToken;
import org.springframework.security.core.userdetails.UserDetails;

import java.util.regex.Pattern;

/**
 * app登陆接口
 * @author yami
 */
public interface AppLoginService {

    /**
     * 登录并获取用户详细信息
     * @param authentication token
     * @return 用户详细信息
     */
    UserDetails loginAndGetUserDetails(AuthenticationToken authentication);

    /**
     * 获取登陆方式
     * @return 登陆方式
     */
    App getApp();

}
